package com.walker.component.page.resolve.query;

public class IntQueryer extends GeneralQueryer<Integer> {
	public IntQueryer() {
	}

	public IntQueryer(String expression) throws IllegalArgumentException {
		setCssQuery(expression);
	}

	@Override
	public Integer convert(Object object) {
		String result = ((String) object).trim();
		try {
			return new Integer(result);
		} catch (NumberFormatException e) {
		}
		return null;
	}
}